package com.xdcplus.web.controller.crack;


import com.xdcplus.exceptions.domain.ResponseVO;
import com.xdcplus.mom.controller.AbstractController;
import com.xdcplus.web.common.pojo.dto.device.DevicePerformanceFilterDTO;
import com.xdcplus.web.common.pojo.vo.device.DeviceFaultDetailVO;
import com.xdcplus.web.common.pojo.vo.device.DevicePerformanceVO;
import com.xdcplus.web.handler.TpCrackSyncHandler;
import com.xdcplus.web.service.TpCrackService;
import com.xdcplus.web.service.device.DevicePerformanceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 */
@Api(tags = "检测设备")
@Slf4j
@Validated
@RestController
@AllArgsConstructor
@RequestMapping("tpcrack")
public class TpCrackController extends AbstractController {

    @Autowired
    private TpCrackSyncHandler tpCrackSyncHandler;

    @ApiOperation("数据同步")
    @GetMapping(value = "/triggerHandle", produces = MediaType.APPLICATION_JSON_VALUE)
    public ResponseVO triggerHandle() {
        tpCrackSyncHandler.handler(null);
        return ResponseVO.success();
    }

}
